#
# NeL Bindings
# Copyright (C) 2010 Naush
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
SET(CMAKE_SWIG_FLAGS "")

SET_SOURCE_FILES_PROPERTIES(nelmisc.i PROPERTIES CPLUSPLUS ON)
SET_SOURCE_FILES_PROPERTIES(nelmisc.i PROPERTIES SWIG_FLAGS "-DNL_DEBUG")

IF(WITH_JAVA)
    SWIG_ADD_MODULE(nelmisc java nelmisc.i nelmisc.cxx)
    SWIG_LINK_LIBRARIES(example ${JAVA_LIBRARIES})
ENDIF(WITH_JAVA)

IF(WITH_PYTHON)
    SWIG_ADD_MODULE(nelmisc python nelmisc.i nelmisc.cxx)
    SWIG_LINK_LIBRARIES(example ${PYTHON_LIBRARIES})
ENDIF(WITH_PYTHON)